package com.practice.bootdemo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Date;

/**
 * @author :zhoushunquan
 * @description: 代码生成
 * @create date: 2022-03-24 17:25:33
 */

@Data
public class CodeTestDto {

    public interface Add {
    }

    public interface Update {
    }

    public interface Delete {
    }

    /**
     * id
     */
    @NotNull(message = "testId不能为空", groups = {Update.class, Delete.class})
    private Long testId;

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别 0女1男
     */
    private Integer sex;

    /**
     * 地址
     */
    private String address;

    /**
     * 用户签名
     */
    private String userSign;

    /**
     * 创建人
     */
    private String createUser;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

}
